<div class="comm_top">
    <div class="top_cont">
        <div class="fl logo">
            <img  src="/quanliadmin/docroot/images/backend/logo.png">
        </div>
        <div class="fl menu_list">
            <ul>
                <li<!--{if $nav_name == 'system'}--> class="cur"<!--{/if}-->>
                    <a href="javascript: void(0);" onclick="check_nav('system',0);">系统管理</a>
                </li>
                <li<!--{if $nav_name == 'b2c'}--> class="cur"<!--{/if}-->>
                    <a href="javascript: void(0);" onclick="check_nav('b2c',1);">商城管理</a>
                </li>
                <li<!--{if $nav_name == 'company'}--> class="cur"<!--{/if}-->>
                    <a href="javascript: void(0);" onclick="check_nav('company',2);">大客户管理</a>
                </li>
                <li<!--{if $nav_name == 'ps'}--> class="cur"<!--{/if}-->>
                    <a href="javascript: void(0);" onclick="check_nav('ps',3);">生产配送</a>
                </li>
                <li<!--{if $nav_name == 'report'}--> class="cur"<!--{/if}-->>
                    <a href="javascript: void(0);" onclick="check_nav('report',4);">报表管理</a>
                </li>
            </ul>
        </div>
        <div class="fr menu_search">
        	<span class="u_name fl"><i class="icon iconfont icon-huiyuan"></i> 管理员</span>
            <span class="u_name fl"><!--{$userName}--></span>
            <a href="/quanliadmin/app/login/login.pscript?operFlg=3">|&nbsp;&nbsp;注销</a>
            <a href="javascript:void(0)" url="/quanliadmin/app/system/userList.pscript?operFlg=5" class="menu_tb_a">个人设置</a>
            <div class="top_notice hide" id="top_notice">
                <p class="c_notice"><a title="关闭" onclick="sys.message.close();"></a></p>
                <div></div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">

    function check_nav(nav_name,n) {

        E.setCookie('nav_name', nav_name, 8640000, '<!--{$ebsig_comm.website.cookie_domain}-->');
        $(".menu_list li").eq(n).addClass('cur').siblings().removeClass('cur');
        get_menu();

    }

    var sys = {

        message: {

            search: function() {
                E.ajax_get({
                    url: '/invokingAjax-backend/system/system.ajax?operFlg=1&xjx=none',
                    call: 'sys.message.result'
                });
            },

            result: function( o ) {
                if (o.code == 200) {
                    var html = '<ul class="notice_list">';
                    $.each(o.data, function(k, v) {
                        html += '<li><a href="' + v.link + '" target="_blank">' + v.message + '</a></li>';
                    });
                    html += '</ul>';
                    $('#top_notice').removeClass('hide').find('div').html(html);
                }
            },

            close: function() {

                $('#top_notice').addClass('hide').find('div').html('');

            }

        }

    };

    //sys.message.search();
    //setInterval('sys.message.search()', 10000);

</script>
